package returnDataStruct;

import pojo.playground;

import java.util.ArrayList;
import java.util.List;

public class playgroundListData {
    private List<playgroundData> pdl;

    public playgroundListData(List<playground> pl){
        pdl = new ArrayList<>();
        for(playground p:pl){
            pdl.add(new playgroundData(p));
        }
    }

    public List<playgroundData> getPdl() {
        return pdl;
    }

    public void setPdl(List<playgroundData> pdl) {
        this.pdl = pdl;
    }
}
